﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace View.BookForms
{
    public class BookEventArgs : EventArgs
    {
        public Int32? Id { get; set; }

        public string Author { get; set; }

        public string Title { get; set; }

        public string Publisher { get; set; }

        public ushort? Year { get; set; }

        public ushort? Edition { get; set; }

        public string Isbn { get; set; }

        public string SimpleId { get; set; }

        public bool Borrowable { get; set; }

        public BookEventArgs(
            Int32? id = null,
            string author = null,
            string title = null,
            string publisher = null,
            ushort? year = null,
            ushort? edition = null,
            string simpleId = null,
            string isbn = null)
        {
            this.Id = id;
            this.Author = author ?? "";
            this.Title = title ?? "";
            this.Publisher = publisher ?? "";
            this.Year = year;
            this.Edition = edition;
            this.SimpleId = simpleId ?? "";
            this.Isbn = isbn ?? "";
        }
    }
}
